<?php
$config = [
    // tools
    'db' => [
        'master' => [
            'username' => 'root',
            'password' => '123456',
            'dsn' => 'mysql:host=127.0.0.1;dbname=tools'
        ],
        'slave' => [
            'username' => 'root',
            'password' => '123456',
            'dsnlist' => [
                ['dsn' => 'mysql:host=127.0.0.1;dbname=tools'],
            ],
        ],
    ],
    // 后台
    'admin_db' => [
        'master' => [
            'username' => 'root',
            'password' => '123456',
            'dsn' => 'mysql:host=127.0.0.1;dbname=admin'
        ],
        'slave' => [
            'username' => 'root',
            'password' => '123456',
            'dsnlist' => [
                ['dsn' => 'mysql:host=127.0.0.1;dbname=admin'],
            ],
        ],
    ],
    // bx
    'bx_db' => [
        'master' => [
            'username' => 'root',
            'password' => '123456',
            'dsn' => 'mysql:host=127.0.0.1;dbname=bx'
        ],
        'slave' => [
            'username' => 'root',
            'password' => '123456',
            'dsnlist' => [
                ['dsn' => 'mysql:host=127.0.0.1;dbname=bx'],
            ],
        ],
    ],
];

return $config;
